



<div class="x-body">
    <form class="layui-form form_single" action="{:url()}" method="post">
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>标题
            </label>
            <div class="layui-input-block">
                <input type="text" id="username" name="title" required="" lay-verify="required"
                       autocomplete="off"  value="{$info['title']|default=''}" class="layui-input">
            </div>
            <div style="color: red !important;" class="layui-form-mid layui-word-aux">
                （限制30字符）
            </div>
        </div>

        <div class="layui-form-item">
            <label for="L_pass" class="layui-form-label">
                <span class="x-red">*</span>版本号
            </label>
            <div class="layui-input-block">
                <input type="text" id="L_pass" name="version"   lay-verify="pass"
                       autocomplete="off" class="layui-input"  value="{$info['version']|default=''}">
            </div>
            <div class="layui-form-mid layui-word-aux">
              (版本号)
            </div>
        </div>



        <div class="layui-form-item">
            <label for="download_url" class="layui-form-label">
                <span class="x-red">*</span>安卓下载链接
            </label>
            <div class="layui-input-block">
                <input type="text" id="download_url" name="download_url"
                       autocomplete="off" class="layui-input"  value="{$info['download_url']|default=''}">
            </div>
            <div class="layui-form-mid layui-word-aux">
                （安卓下载链接）
            </div>
        </div>



        <div class="layui-form-item">
            <label for="download_url" class="layui-form-label">
                <span class="x-red">*</span>IOS下载链接
            </label>
            <div class="layui-input-block">
                <input type="text" id="download_url_ios" name="download_url_ios"
                       autocomplete="off" class="layui-input"  value="{$info['download_url_ios']|default=''}">
            </div>
            <div class="layui-form-mid layui-word-aux">
                （IOS下载链接）
            </div>
        </div>
        <!--<div class="layui-form-item">-->
            <!--<label for="start_time" class="layui-form-label">-->
                <!--<span class="x-red">*</span>选用更新用户注册时间-->
            <!--</label>-->
            <!--<div class="layui-input-block">-->
                <!--<input class="layui-input"  autocomplete="off" placeholder="开始日"  name="start_time"  id="start_time">-->
            <!--</div>-->

        <!--</div>-->

        <!--<div class="layui-form-item">-->
            <!--<label for="end_time" class="layui-form-label">-->
                <!--<span class="x-red">*</span>选用更新用户注册时间-->
            <!--</label>-->
            <!--<div class="layui-input-block">-->
                <!--<input class="layui-input"  autocomplete="off" placeholder="结束日"  name="end_time"   id="end_time">-->
            <!--</div>-->

        <!--</div>-->

        <div class="layui-form-item">
            <label for="download_url" class="layui-form-label">
                <span class="x-red">*</span>更新内容
            </label>
            <div class="layui-input-block">
                <textarea class="form-control textarea_editor" name="content" placeholder="请输入更新内容">{$info['content']|default=''}</textarea>
                {:widget('editor/index', array('name'=> 'content','value'=> ''))}
            </div>
        </div>

        <div class="layui-form-item">
            <label for="download_url" class="layui-form-label">
              是否可用
            </label>
            <div class="layui-input-inline">
                <input type="checkbox" name="is_enable" value="1" lay-skin="switch"  {notempty name='info'}{eq name="info.is_enable" value='1'} checked='checked' {/eq}{/notempty}  lay-text="开启|关闭">
            </div>
        </div>

        <div class="box-footer">

            <input type="hidden" name="id" value="{$info['id']|default='0'}"/>

            {include file="layout/edit_btn_group"/}

        </div>

    </form>
</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#end_time' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#start_time' //指定元素
        });
    });
</script>
